package cn.hsa.xxx.bookData.service.impl;

import cn.hsa.xxx.bookData.bo.InventoryBatchBO;
import cn.hsa.xxx.api.dto.InventoryBatchDTO;
import cn.hsa.xxx.api.service.InventoryBatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class InventoryBatchServiceImpl implements InventoryBatchService {

    @Autowired
    private InventoryBatchBO inventoryBatchBO;

    @Override
    public InventoryBatchDTO add(InventoryBatchDTO inventoryBatchDTO) {
        return inventoryBatchBO.add(inventoryBatchDTO);
    }

    @Override
    public String delete(String id) {
        return inventoryBatchBO.delete(id);
    }

    @Override
    public InventoryBatchDTO get(String id) {
        return inventoryBatchBO.get(id);
    }

    @Override
    public String update(InventoryBatchDTO InventoryBatchDTO) {
        return inventoryBatchBO.update(InventoryBatchDTO);
    }

    @Override
    public List<InventoryBatchDTO> getPage(int pageNo, int pageSize) {
        return inventoryBatchBO.getPage(pageNo,pageSize);
    }
}
